public class FileTable {
    String filename;//文件名
    int start;//文件在磁盘中的起始地址
    int length;//文件内容长度
    int maxLength;//文件的最大长度
    String fileKind;//文件的属性——读写方式
    boolean openFlag;//判断是否有进程打开了该文件
    int time;

    public FileTable() {}

    public FileTable(String filename, int start, int length, int maxLength, String fileKind, boolean openFlag, int time) {
        this.filename = filename;
        this.start = start;
        this.length = length;
        this.maxLength = maxLength;
        this.fileKind = fileKind;
        this.openFlag = openFlag;
        this.time = time;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(int maxLength) {
        this.maxLength = maxLength;
    }

    public String getFileKind() {
        return fileKind;
    }

    public void setFileKind(String fileKind) {
        this.fileKind = fileKind;
    }

    public boolean isOpenFlag() {
        return openFlag;
    }

    public void setOpenFlag(boolean openFlag) {
        this.openFlag = openFlag;
    }
}
